package com.solution.admin.product.dao;

import java.util.List;
import java.util.Map;

import com.solution.admin.product.entity.ProductSpecRelaEntity;
import com.solution.common.dao.BaseDao;

/**
 * 商品规格关联DAO接口
 * 
 * @author xu_cc
 * @date 2017-08-31 23:46:57
 */
public interface ProductSpecRelaDao extends BaseDao<ProductSpecRelaEntity> {

    /**
     * 
     * @param ebProductSpecRelaEntity
     * @return
     * @author xu_cc
     * @date 2017-08-31 23:46:57
     */
    public long saveProductSpecRela(ProductSpecRelaEntity ebProductSpecRelaEntity);

    /**
     * 删除商品规格关联角色
     * 
     * @param id
     * @return
     * @author xu_cc
     * @date 2017-08-31 23:46:57
     */
    public int deleteProductSpecRelaById(Long id);

    /**
     * 根据商品规格关联类型获取商品规格关联
     * 
     * @param param
     * @return
     * @author xu_cc
     * @date 2017-08-31 23:46:57
     */
    public List<ProductSpecRelaEntity> listProductSpecRela(Map<String, Object> param);

    /**
     * 查询商品列表中第个商品的规格项及价格
     * @param productCodeList
     * @return
     * @author lilp
     */
	public List<ProductSpecRelaEntity> listProductSpecRelaForIndex(List<Long> productIdList);
}
